package com.automobile.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;


/*
 * 用户
 */
@JsonIgnoreProperties(value = { "handler" })
public class User implements Serializable {
	
	private int id;
	private String phone;
	private String password;
	private String name;
	private String sex;
	private Date birthday;
	private String email;
	private Date registrationTime;//注册时间
	private String status;//是否激活
	private String code;//激活唯一码
	private String checkCode;//存登录验证码
	private int isMerchant;//是否是商家用户
	private String img;//头像的存储目录
	
	private List<Site> sites;//地址
	private List<Orderform> orderforms;//订单
	private List<Announce> announces;//贴或商品
	
	

	public List<Site> getSites() {
		return sites;
	}

	public void setSites(List<Site> sites) {
		this.sites = sites;
	}

	public List<Orderform> getOrderforms() {
		return orderforms;
	}

	public void setOrderforms(List<Orderform> orderforms) {
		this.orderforms = orderforms;
	}

	public List<Announce> getAnnounces() {
		return announces;
	}

	public void setAnnounces(List<Announce> announces) {
		this.announces = announces;
	}
	
	
	
	
	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getCheckCode() {
		return checkCode;
	}

	public void setCheckCode(String checkCode) {
		this.checkCode = checkCode;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	

	public Date getRegistrationTime() {
		return registrationTime;
	}

	public void setRegistrationTime(Date registrationTime) {
		this.registrationTime = registrationTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public int getIsMerchant() {
		return isMerchant;
	}

	public void setIsMerchant(int isMerchant) {
		this.isMerchant = isMerchant;
	}

    @Override
    public String toString() {
        return "User{" +
                "sites=" + sites +
                ", announces=" + announces +
                '}';
    }
}
